package itil

import (
	"fjj/tool/dbOperate"
	"github.com/gin-gonic/gin"
	"net/http"
)

func test2(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"test2": "数据库操作",
	})
}

func createTable(c *gin.Context) {
	dbOperate.CreateTable()
	c.JSON(http.StatusOK, gin.H{
		"result": "表创建成功",
	})
}

func dropTable(c *gin.Context) {
	dbOperate.DropTable()
	c.JSON(http.StatusOK, gin.H{
		"result": "表删除成功",
	})
}
